package zhang.com.ssm.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import zhang.com.ssm.mapper.FileMapper;
import zhang.com.ssm.po.FilePo;
import zhang.com.ssm.service.FileService;
@Service
public class FileServiceImpl implements FileService {
    
	
	@Autowired
	FileMapper fileMap;
	
	@Override
	public void insertFile(FilePo file) {
		fileMap.insertFile(file);
	}

	@Override
	public void updateById(FilePo file) throws Exception {
		fileMap.updateById(file);
	}

	@Override
	public FilePo findIdByTitle(String Title) {
		FilePo file=fileMap.findIdByTitle(Title);
		return file;
	}

}
